load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")

go_library(
    name = "gen_lib",
    srcs = ["main.go"],
    importpath = "github.com/cockroachdb/cockroach/pkg/util/assetbundle/gen",
    visibility = ["//visibility:private"],
    deps = [
        "//pkg/cli/exit",
        "@com_github_cockroachdb_errors//:errors",
        "@com_github_klauspost_compress//zstd",
    ],
)

go_binary(
    name = "gen",
    embed = [":gen_lib"],
    visibility = ["//pkg/ui:__subpackages__"],
)
